package gui.android;

import perv_comp.abbs.cok.R;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.ActivityInfo;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Play_Exit_Menu extends Activity implements OnClickListener{
	
	private Button netzButton;


	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
		setContentView(R.layout.play_exit_menu);
		
		netzButton = (Button)findViewById(R.id.btn_netz);
	
		
		netzButton.setOnClickListener(this);

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}
	
	@Override
	public void onClick(View component) {
		
		switch (component.getId()) {
			case R.id.btn_netz:
				Intent intent = new Intent(this, MyCharacter.class);
				startActivity(intent);
				break;
				
		
		}
	}

}
